Skip to content

Core: NodeHandle::live, a node's live-region politeness - #369

Merged
samitbasu merged 4 commits into
mainfrom
notify-live-347
Nov 20, 2026
Merged

samitbasu merged 4 commits into
mainfrom
notify-live-347

Conversation

@samitbasu

Copy link
Copy Markdown
Owner

Part of #347.

The first of the notification PRs from the design note: the one core primitive it asked for, approved in the decisions comment.

API for review

impl<'b, 'f, A: 'static, K> NodeHandle<'b, 'f, A, K> {
    /// The node becomes a live region (aria-live).
    pub fn live(self, live: egui::accesskit::Live) -> Self;
}

It is built the same way as expanded(): a draw closure sets the flag on the node's accesskit builder. Notification stacks, Spinner #348 and status lines will all use it.

Tests

  • interaction::a_live_node_is_announced_as_a_live_region: a Status node with .live(Polite) reads live() == Some(Polite) in the kittest accesskit tree, and a sibling without it reads None.

Behaviour changes

None. The change only adds API.

cargo xtask ci: exit 0 on this head, merged with current main.

🤖 Generated with Claude Code

samitbasu and others added 2 commits November 18, 2026 09:29
A notification stack (#347), a spinner (#348) and status lines all need
assistive technology to announce changes to a region. Without a core
method each widget reaches into accesskit on its own, so the node gets
live(Live), the aria-live of the web, built as expanded() is: a draw
closure that sets the flag on the node's accesskit builder.

Part of #347.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AJYxo4YJZUXcPJ1bHdAHKy
@samitbasu

Copy link
Copy Markdown
Owner Author

Approved by the user on its tests (2026-11-19). GitHub's required checks pass on the branch merged with current main. Merging.

@samitbasu
samitbasu merged commit 73e22f8 into main Nov 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant